﻿public enum MessageCode
{
    /// <summary>
    /// 操作失败
    /// </summary>
    Fail = 1000,

    /// <summary>
    /// 该用户不存在
    /// </summary>
    NoThisUser,

    /// <summary>
    /// 密码错误
    /// </summary>
    PasswordError,

    /// <summary>
    /// 没有权限
    /// </summary>
    NoPermission,

    /// <summary>
    /// 验证码错误
    /// </summary>
    CodeError,

    /// <summary>
    /// 帖子不存在
    /// </summary>
    PostNotExist,

    /// <summary>
    /// 回复不存在
    /// </summary>
    ReplyNotExist,

    UpdatePostFail,

    UpdateReplyFail,

    /// <summary>
    /// 该邮箱已经被用户注册
    /// </summary>
    EmailRegistered,

    /// <summary>
    /// 该用户名已被注册
    /// </summary>
    NameRegistered,

    /// <summary>
    /// 不允许重复投票
    /// </summary>
    NotAllowRevote,

    /// <summary>
    /// 用户不存在或者密码错误
    /// </summary>
    UserNotExistOrPasswordError,

    /// <summary>
    /// 该用户帐号尚未激活
    /// </summary>
    UserNotActive,

    /// <summary>
    /// 激活帐号失败
    /// </summary>
    ActiveUserFail,

    /// <summary>
    /// 该用户帐号已被激活
    /// </summary>
    UserIsActived,

    /// <summary>
    /// 尚未登录
    /// </summary>
    NotLogin,

    /// <summary>
    /// 激活帐号失败！
    /// </summary>
    ActiveFail,

    AddToFavorFail,

    /// <summary>
    /// 操作成功
    /// </summary>
    Success = 2000,

    /// <summary>
    /// 注册邮件已发出
    /// </summary>
    RegisterEmailSend,

    /// <summary>
    /// 发表回复成功
    /// </summary>
    AddReplySuccess,
    AddPostSuccess,

    /// <summary>
    /// 成功将帖子添加到收藏夹！
    /// </summary>
    AddToFavorSuccess,

    /// <summary>
    /// 更新帖子成功！
    /// </summary>
    UpdatePostSuccess,

    /// <summary>
    /// 更新回复成功！
    /// </summary>
    UpdateReplySuccess,
    /// <summary>
    /// 删除帖子成功！
    /// </summary>
    DeletePostSuccess,
    /// <summary>
    /// 答案错误！
    /// </summary>
    AnswerError,
    /// <summary>
    /// 用户信息更新成功！
    /// </summary>
    UpdateUserSuccess,

    /// <summary>
    /// 删除回复成功！
    /// </summary>
    DeleteReplySuccess,
    BoardNotExist,

}